<script lang="ts">
import {reactive} from 'vue'

export default {
  name: 'Body',
  data() {
    return {
      imgList:['yimengshan01.jpg','zhanqiao02.jpg','taiyangbuluo03.jpg','taierzhuang02.jpg','chengshantou01.jpg','zhanqiao01.jpg']
    }
  }
}

</script>
<template>
 
  <el-carousel :interval="4000" type="card" height="200px "  >
    <el-carousel-item v-for="item in imgList" :key="item">
      <el-image style="height: 100%;width: 100%;" :src="`src/assets/wzt/${item}`"></el-image>
    </el-carousel-item>
  </el-carousel>

 
</template>

<style scoped>
.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>